package com.gulimall.provide.controller;

import com.gulimall.provide.feign.abc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Description
 * @auther Machenike
 * @create 2020-10-15 18:01
 */
//Model是属于请求域
    //           @RequestMapping(value="/one",params = "method=a")
   //           @RequestMapping(value="/two1",produces = {"application/json;charset=utf-8","text/plain;charset=utf-8"})
    //参数:@RequestParam(value = "b",required = false,defaultValue = "握草尼玛")
    //         @RequestBody String(str) 输出:userCode=admin&userPassword=1234567
    //          @SessionAttributes({"a","b","c"}) 自动把该controller下所有返回页面的属性的作用域改成session
    //          @ModelAttribute标注一个方法时，指定每次跳入某个路径时该方法先执行
@RestController
public class a {
    
    @Resource
     abc abc ;

    @RequestMapping(value="/a",produces = {"application/json;charset=utf-8","text/plain;charset=utf-8"})
        public Map discernSave(){
        Map a = abc.a();
        return a;
        }

}
